<?php


class singleLinkList {

	//链表
	private $list = array();
	//链表头
	private $head;

	public function __construct() {
		$this->head = new node();
		$this->head->setData(null);
		$this->head->setNext(null);
		$this->list[0] = $this->head;
	}

	//获取链表
	public function getLinkList() {
		return $this->list;
	}

	//获取链表长度
	public function getLinkLength() {
		return count($this->list);
	}

	//获取某个位置的值
	public function getLinkData($pos) {
		return $this->list[$pos]->getData();
	}

	//添加一条数据
	public function addLink($pos, $value) {
	}

	//修改一条数据
	public function updateLink($pos, $value) {
	}

	//删除一条数据
	public function delLink($pos) {
	}
}